package com.weiyin.examination.module;

import android.os.Parcel;
import android.os.Parcelable;

import java.util.List;

/**
 * Created by darkshadow on 2018/7/25.
 */

public class AnswerXml implements Parcelable {
    private String number;
    private List<Note> noteList;
    private String fifths;
    private String beats;
    private String beatType;

    public AnswerXml(){

    }

    protected AnswerXml(Parcel in) {
        number = in.readString();
        noteList = in.createTypedArrayList(Note.CREATOR);
        fifths = in.readString();
        beats = in.readString();
        beatType = in.readString();
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(number);
        dest.writeTypedList(noteList);
        dest.writeString(fifths);
        dest.writeString(beats);
        dest.writeString(beatType);
    }

    @Override
    public int describeContents() {
        return 0;
    }

    public static final Creator<AnswerXml> CREATOR = new Creator<AnswerXml>() {
        @Override
        public AnswerXml createFromParcel(Parcel in) {
            return new AnswerXml(in);
        }

        @Override
        public AnswerXml[] newArray(int size) {
            return new AnswerXml[size];
        }
    };

    public String getNumber() {
        return number;
    }

    public void setNumber(String number) {
        this.number = number;
    }


    public List<Note> getNoteList() {
        return noteList;
    }

    public void setNoteList(List<Note> noteList) {
        this.noteList = noteList;
    }


    public String getFifths() {
        return fifths;
    }

    public void setFifths(String fifths) {
        this.fifths = fifths;
    }

    public String getBeats() {
        return beats;
    }

    public void setBeats(String beats) {
        this.beats = beats;
    }

    public String getBeatType() {
        return beatType;
    }

    public void setBeatType(String beatType) {
        this.beatType = beatType;
    }


}
